package com.winit.deploy.bean;

import org.springframework.util.StringUtils;

import java.util.Collections;
import java.util.List;

/**
 * Created by wangjian on 16/8/16.
 */
public class DeployArea {

    private String name;
    private String alias;
    private String zone_code;
    private String description;
    private String status;
    private List<String> groups;
    private List<DeployTask> tasks;

    private Boolean useJumpServer;//是否使用跳板机
    private String jumpServerIp;//跳板机ip

    private List<DubboVerifyInfo> dubboList;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAlias() {
        return alias;
    }

    public void setAlias(String alias) {
        this.alias = alias;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public List<String> getGroups() {
        return groups;
    }

    public void setGroups(List<String> groups) {
        this.groups = groups;
    }

    public List<DeployTask> getTasks() {
        return tasks;
    }

    public void setTasks(List<DeployTask> tasks) {
        Collections.sort(tasks);
        this.tasks = tasks;
    }

    public String getJumpServerIp() {
        return jumpServerIp;
    }

    public void setJumpServerIp(String jumpServerIp) {
        this.jumpServerIp = jumpServerIp;
    }

    public Boolean getUseJumpServer() {
        return useJumpServer;
    }

    public void setUseJumpServer(Boolean useJumpServer) {
        this.useJumpServer = useJumpServer;
    }

    public List<DubboVerifyInfo> getDubboList() {
        return dubboList;
    }

    public void setDubboList(List<DubboVerifyInfo> dubboList) {
        this.dubboList = dubboList;
    }

    public String getZone_code() {
        return zone_code;
    }

    public void setZone_code(String zone_code) {
        this.zone_code = zone_code;
    }
}
